
<div>
  <a [routerLink]="['/index']">首页</a>
  <a [routerLink]="['/login']">登录</a>
  <a [routerLink]="['/news']">新闻</a>
</div>